package com.ruoyi.invoice.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销项发票明细对象 sales_invoice_detail
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class SalesInvoiceDetail
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long detailId;

    /** 销项发票id（外键） */
    @Excel(name = "销项发票id", readConverterExp = "外=键")
    private Long salesInvoiceId;

    /** 开票商品id(外键) */
    @Excel(name = "开票商品id(外键)")
    private Long invoicingItemId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private BigDecimal quantity;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 税额 */
    @Excel(name = "税额")
    private BigDecimal taxAmount;

    /** 征税id */
    @Excel(name = "征税id")
    private Long taxProjectsId;

    /** 计税id */
    @Excel(name = "计税id")
    private Long taxMethodsId;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setSalesInvoiceId(Long salesInvoiceId) 
    {
        this.salesInvoiceId = salesInvoiceId;
    }

    public Long getSalesInvoiceId() 
    {
        return salesInvoiceId;
    }
    public void setInvoicingItemId(Long invoicingItemId) 
    {
        this.invoicingItemId = invoicingItemId;
    }

    public Long getInvoicingItemId() 
    {
        return invoicingItemId;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setTaxAmount(BigDecimal taxAmount) 
    {
        this.taxAmount = taxAmount;
    }

    public BigDecimal getTaxAmount() 
    {
        return taxAmount;
    }
    public void setTaxProjectsId(Long taxProjectsId) 
    {
        this.taxProjectsId = taxProjectsId;
    }

    public Long getTaxProjectsId() 
    {
        return taxProjectsId;
    }
    public void setTaxMethodsId(Long taxMethodsId) 
    {
        this.taxMethodsId = taxMethodsId;
    }

    public Long getTaxMethodsId() 
    {
        return taxMethodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("salesInvoiceId", getSalesInvoiceId())
            .append("invoicingItemId", getInvoicingItemId())
            .append("quantity", getQuantity())
            .append("amount", getAmount())
            .append("taxAmount", getTaxAmount())
            .append("taxProjectsId", getTaxProjectsId())
            .append("taxMethodsId", getTaxMethodsId())
            .toString();
    }
}
